﻿using System.Collections.Generic;
using MedicalCare.EntityDefinitions.Entities;
using MedicalCare.Messages;

namespace MedicalCare.DbLayer.Adaptors
{
    public interface IEquipmentsAdaptor : IDbAdaptor<EquipmentsMessage, EquipmentsEntity>
    {
        IList<EquipmentsEntity> GetPagingRecords(string orderKey, string orderVal,
                           int pageIndex, int pageSize, string whereStr);
        int Update(EquipmentsMessage msg);
        IList<EquipmentsEntity> GetAllEquipments(EquipmentTypeMessage message);
        //Champion 2013/1/3
        int DeleteEquipmentsById(EquipmentsMessage message);
        EquipmentsEntity GetEquipmentById(int id);
        EquipmentsEntity GetEquipmentBySensorId(EquipmentsMessage msg);
        //EquipmentsMessage GetEquipmentBySensorId(EquipmentsMessage meg);
    }
}
